<%@page import="org.amj.wn.sect.SectFilter"%>
<%@page import="org.amj.wn.WNUserService"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login!</title>
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
</head>
<body>
<%

if(SectFilter.isUserLoggedIn(request))
	response.sendRedirect("/sect/menu.jsp");

%>

<form method="post" action="login.jsp" method="post">

	<h3>Please Login</h3>
	<%
	if("1".equals(request.getParameter("r"))) {
		%>
		<div class='error'>Please login!</div> <br>
		<%
	} else if("2".equals(request.getParameter("r"))) {
		%>
		<div class='error'>Invalid Member Code or Passcode</div><br>
		<%
	}
	%>
	<label>
		<span>Member Code</span> 
		<input name='memberCode' class='input_text' type='text' /> 
	</label>
	<label>
		<span>Passcode</span> 
		<input name='passCode' class='input_text' type="password" /> 
	</label>
	<input name='opt' class='input_text' type='hidden' value='LOGIN'/>
	<input type='submit' value='Login' class="input_button"/>
</form>
	
</body>
</html>